﻿namespace Qins.PluginInterface
{
    public interface IPlugin
    {
        /// <summary>
        /// 插件名字
        /// </summary>
        string PluginName { get; }
        /// <summary>
        /// 插件描述
        /// </summary>
        string Description { get; }
        /// <summary>
        /// 入参
        /// </summary>
        string InDescription { get; }
        /// <summary>
        /// 出参
        /// </summary>
        string OutDescription { get; }
        /// <summary>
        /// 自动运行
        /// </summary>
        bool AutoRun { get; }
        /// <summary>
        /// 执行
        /// </summary>
        /// <param name="inPars"></param>
        /// <returns></returns>
        string Execute(object inPars);

        public Message MessageTransport { get; set; }

        public void Initialization(Message messageTransport);
    }
}